import {
	request
} from "../../utils/request";

export function apiLoginByCode(phone, code) {
	return request(`/api/login/${phone}/${code}`);
}
export function apiLoginByPassword(data = {}) {
	return request(`/api/login`, "POST", data);
}

export function apiGetLoginCode(phone) {
	return request(`/api/login/code/${phone}`);
}

export function apiGetUserInfo() {
	return request("/api/user/mine");
}